<script type="text/javascript">
/*ten of grid.prototype.rowClickCallback = function (grid, event){
    var element = Event.findElement(event, 'tr');
    alert(Event.element(event).tagName.toLowerCase());event.preventDefault(); return false;
    if(['a', 'input', 'select', 'option'].indexOf(Event.element(event).tagName.toLowerCase())!=-1) {
        return;
    }

    if(element.title){
        setLocation(element.title);
    }
};*/
function customOpenRowGrid(grid, event){
    var element = Event.findElement(event, 'tr');
    if(['a', 'input', 'select', 'option'].indexOf(Event.element(event).tagName.toLowerCase())!=-1) {
        return;
    }

    if(element.title){
        var width = 960;
        var height = 500;
        var left = parseInt((screen.availWidth/2) - (width/2));
        var top = parseInt((screen.availHeight/2) - (height/2));
        var windowFeatures = "width=" + width + ",height=" + height + ",scrollbars=1,status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
        url = element.title;//"<?php echo $this->url ?>";
        myWindow = window.open(url, "Report VendorContract Detail", windowFeatures);
        //setLocation(element.title);
    }
};
/*varienGlobalEvents.attachEventHandler('gridRowClick',function(event){
    event.preventDefault();
    alert("ehe");return false; 
});*/

</script>